package com.hqyj.ctxp.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hqyj.ctxp.pojo.Orders;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface OrdersMapper extends BaseMapper<Orders> {

    // 查询 当前用户订单
    List<Orders> selectOrders(Integer userNo);

    Page<Orders> selectOrderPage(@Param("page") Page<Orders> page, @Param("keyword") String keyword, @Param("sort") String sort, @Param("direction") String direction);
}
